<?php


namespace app\common\business;


use think\Exception;

class BusBase
{
    public function add(array $data)
    {
        $data['status'] = 1;
        try {
            $this->model->save($data);
        } catch (Exception $e) {
            return false;
        }

        return $this->model->id;
    }
}